package com.jh.jingfei.home.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.jh.jingfei.R;

/**
 * @author lxb
 * Created by lion on 2017/12/2.
 */

public class ParamRvAdapter extends RecyclerView.Adapter<ParamRvAdapter.ParamVH> {
    private Context mContext;

    public ParamRvAdapter(Context mContext) {
        this.mContext = mContext;
    }

    @Override
    public ParamVH onCreateViewHolder(ViewGroup parent, int viewType) {
        LayoutInflater lf = LayoutInflater.from(mContext);
        View v = lf.inflate(R.layout.param_list_item, parent, false);

        return new ParamVH(v);
    }

    @Override
    public int getItemCount() {
        return 10;
    }

    @Override
    public void onBindViewHolder(ParamVH holder, int position) {

    }

    class ParamVH extends RecyclerView.ViewHolder {

        public ParamVH(View itemView) {
            super(itemView);
        }
    }
}
